package com.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.springframework.data.elasticsearch.annotations.Document;
import org.springframework.data.elasticsearch.annotations.Field;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import java.io.Serializable;
import java.util.Date;

/**
 * <p>
 *
 * </p>
 *
 * @author zhangqing
 * @since 2021/3/17
 */
@Data
@Entity
@Document(indexName = "wlw_carrier_travel",shards = 1,replicas = 0)
public class Travel implements Serializable {
    private static final long serialVersionUID = 739668778715426461L;
    @Id
    @ApiModelProperty("主键")
//    @TableId(value = "id", type = IdType.INPUT)
//    @Column(columnDefinition = "varchar")
    @Field
    private String id;

    private String day;

    private String time;
    @Field
    private String longitude;
    @Field
    private String latitude;
    @Field
    private Double speed;
    @Field
    private Long gmtCreate;


}
